print("hello world")

n1 = 1 + 2j
n2 = 2 + 3j
n3 = n1 + n2
print(n3)  # (3+5j)

name = "leslie"
print(type(name))  # <class 'str'>
print(type(1))  # <class 'int'>
print(type(1.0))  # <class 'float'>
print(type(n3))  # <class 'complex'>

"""
This is multiple comments
"""

address = """Dalian
Liaoning
China
"""

print(address)

name = "leslie"
age = 18
## %s 占位符
print("My name is: %s" % name)  # 占位符占据位置
print("My Age is %d" % age)
print("My name is %s, age is %d" % (name, age))

# 数组设置尾数，不足的前面补空白
a1 = 123
print("%06d" % a1)  # 表示输出的整数显示位数，超过的话原样输出 ### 000123
print("%06d" % 123456)  # 123456

# 浮点数的占位符
a2 = 123.456
print("%06.2f" % a2)  # 表示输出的浮点数显示位数，
a3 = 1.2345678
print("%f" % a3)  ### 默认保留6位小数, 1.234568 四舍五入

b1 = 2.34567
print("%.3f" % b1)  # 表示输出的浮点数小数点后显示的位数 # 2.346
print("%.7f" % b1)  # 表示输出的浮点数小数点后显示的位数 # 2.3456700

# %%
print("I am %% 的 1%%" % ())  # I am % 的 1%

# f 格式化
name3 = "leslie"
age3 = 18
print(f"my name is {name3}, age is {age3}")  # my name is leslie, age is 18


print("temp is good", "go home", sep=">>>>>>")


print("temp is good", end="----->")
print("go home", end="!!!!!")
print("OK")

print("a", "b", sep="-", end="!\n")  # a-b!

print("----------------")
print(100, 200, 300, sep=" ==> ")
